package com.pioneer.web.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pioneer.web.book.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author aom-star@outlook.com
* @description 针对表【book】的数据库操作Mapper
* @createDate 2025-05-18 10:19:53
* @Entity com.pioneer.web.book.domain.Book
*/
@Mapper
public interface BookMapper extends BaseMapper<Book> {
    Book uniqueBook(@Param("title") String title, @Param("author") String author);

    boolean deleteByBookIds(@Param("bookList") List<Book> books);

    void returnBook(@Param("bookId") Long bookId);
}




